package com.lb.action;


import com.lb.service.AdminService;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

public class AdminLogoutAction extends ActionSupport{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
    private AdminService service;
    
	public AdminService getService() {
		return service;
	}

	public void setService(AdminService service) {
		this.service = service;
	}

	public String execute() throws Exception {
		ActionContext.getContext().getSession().remove("admin");
		
		return SUCCESS;
	}

}
